package fi.jamk.ourcookingapp.backend.model;

import java.io.Serializable;
import java.util.List;

/**
 * This is an user
 * @author Marius
 */
public class User implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private List<Receipt> lstOwnRecipt;
	
	private List<Comment> lstComment;
	
	private String password;
	
	private String eMail;
	
	private String loginName;
	
	private List<Receipt> lstFavRecipt;

	private int ID;
	
	public User(String loginName, String password, String email) {
		this.password = loginName;
		this.eMail = password;
		this.loginName = email;
	}
	
	public int getID() {
		return ID;
	}
	
	public void setID(int iD) {
		ID = iD;
	}

	public User(String loginName) {
		this.loginName = loginName;
	}

	public User(String loginName, int id) {
		this.loginName = loginName;
		this.ID = id;
	}

	public List<Receipt> getLstOwnRecipt() {
		return lstOwnRecipt;
	}
	
	public void setLstOwnRecipt(List<Receipt> lstOwnRecipt) {
		this.lstOwnRecipt = lstOwnRecipt;
	}
	
	public List<Comment> getLstComment() {
		return lstComment;
	}
	
	public void setLstComment(List<Comment> lstComment) {
		this.lstComment = lstComment;
	}
	
	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getEMail() {
		return eMail;
	}
	
	public void setEMail(String eMail) {
		this.eMail = eMail;
	}
	
	public String getLoginName() {
		return loginName;
	}
	
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	
	public List<Receipt> getLstFavRecipt() {
		return lstFavRecipt;
	}
	
	public void setLstFavRecipt(List<Receipt> lstFavRecipt) {
		this.lstFavRecipt = lstFavRecipt;
	}

	public String print() {
		return "Email: " + this.eMail + "; Loginname: " + this.loginName + "; Password: " + this.password;
	}

}